<div data-role="content" data-scroll="y" height="80%">
<div data-iscroll="scroller">
<ul data-role="listview" data-filter="true" >
		
	<?php $this->load->model('user_model');?>
		
	<?php if (isset($rows)):foreach($rows as $r) :?>
		
		<li data-icon="false">
		
		<?php if($r->notice_type==1): ?>
		<a data-rel="dialog" href="<?=site_url('feed_controller/to_apply?helloID=').$r->helloid ;?>" >
		<p><img class="top" src="<?=base_url('themes/resources/news.png');?>" style="float:left; align:left; width:16%;"/>
		<b style="color:#2489CE; margin-left:3%;"><?=$r->sender_name?></b>
		<b style="margin-left:3%;"><?=$r->sender_name?> has applied your hello </b><br />
		<b style=" margin-left:3%"><?=$r->hello_title?></b> </p></a>
		
		<?php elseif($r->notice_type==2): ?>
		<a data-rel="dialog" href="<?=site_url('feed_controller/to_apply?helloID=').$r->helloid; ?>" >
		<a><h4><?=$r->sender_name?></h4><br />
		<p>confirmed your hello</p><br />
		<b style=" margin-left:3%"><?=$r->hello_title?> </b></p></a>
		
		<?php elseif($r->notice_type==3): ?>
		<a href="<?=site_url('messege_controller/to_send_messege?receiverid='.(string)($r->senderid)) ;?>" >
		<p><img class="top" src="<?=base_url('themes/resources/message.png');?>" style="float:left; align:left; width:16%;"/>
		<b style="color:#2489CE; margin-left:3%;"><?=$r->sender_name?></b></br>
		<b style=" margin-left:3%"><?=$r->sender_name?> send you a message </b></p></a>
		
		
		<?php elseif($r->notice_type==4): ?>
		<p><img class="top" src="<?=base_url('themes/resources/friend.png');?>" style="float:left; align:left; width:16%;"/>
		<b style="color:#2489CE; margin-left:3%;"><?=$r->sender_name?></b></br>
		<b style=" margin-left:3%"><?=$r->sender_name?> has add you as a friend </b>
		
		
		<?php 	if(!$r->is_read)
        	$r->is_read=true;
        
         ?>
		
		</li>
		
		<?php endif; ?>
		
		<?php endforeach;
		else :?>
		<h4>There is no notification now!</h4>
		<?php endif; ?>
		

</ul>	
</div>
</div>